package com.example.mytestdemo.custom

import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.view.Gravity
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import com.example.mytestdemo.BaseViewBindActivity
import com.example.mytestdemo.R
import com.example.mytestdemo.databinding.ActivityDrawSrcDstLayoutBinding
import com.example.mytestdemo.databinding.ActivityTextScrollLayoutBinding

/**
 *
 * 文本从下往上滚
 */
class DrawSrcDstActivity : BaseViewBindActivity<ActivityDrawSrcDstLayoutBinding>() {
    private var camera: CameraXAnalysis? = null
    override fun getLayoutInflateId(): Int {
        return R.layout.activity_draw_src_dst_layout
    }

    override fun initData() {
        camera = CameraXAnalysis(this, lifecycleOwner = this, mBind.cameraPreviewView,
            imageAnalyzerFailCallback = {

            },
            imageAnalyzerCallback = { width: Float, height: Float, topMargin: Float, leftMargin: Float, isBlur: Boolean, luminanceValue: Double? ->

            })

        mBind.bt.setOnClickListener {
            if (mBind.ivBg.isVisible){
                mBind.ivBg.visibility = View.GONE
            }else{
                mBind.ivBg.visibility = View.VISIBLE
            }
        }

    }
    override fun initUI() {
    }

}